/*
 * @Author: 杨光辉(GerhardYang)
 * @Date: 2021-06-04 11:17:04
 * @LastEditors: 杨光辉(GerhardYang)
 * @LastEditTime: 2021-06-05 00:02:23
 * @Description: file content
 * @Copyright: 超图软件华中平台客户中心 (SuperMap Software Co., Ltd. -Central China Platform)
 */

let plugin = [];
if (process.env.NODE_ENV === "production") {
  // 如果是生产环境
  plugin.push([
    "transform-remove-console",
    {
      exclude: ["error", "warn"], // 保留 console.error 和 console.warn
    },
  ]);
}

module.exports = {
  plugins: [...plugin],
  presets: ["@vue/cli-plugin-babel/preset"],
};
